package com.magupe.im.web.protocol.response;

import com.magupe.im.web.protocol.Packet;

public abstract class BaseResponse extends Packet {

    private int statusCode;

    private String message;

    public BaseResponse(){}

    public BaseResponse(int statusCode, String message) {
        this.statusCode = statusCode;
        this.message = message;
    }

    public BaseResponse(ResponseStatus status) {
        this.statusCode = status.getStatusCode();
        this.message = status.getMessage();
    }

    public int getStatusCode(){
        return statusCode;
    }

    public void setStatusCode(int statusCode){
        this.statusCode = statusCode;
    }

    public String getMessage(){
        return message;
    }

    public void setMessage(String message){
        this.message = message;
    }
}
